/*
 * KeyEvent.cpp
 *
 *  Created on: 2010-9-9
 *      Author: wenjian
 */

#include "KeyEvent.h"
#include "eventtypes.h"

namespace Ed {

  EventType KeyEvent::PressType = KEY_PRESS_EVENT_TYPE;
  EventType KeyEvent::ReleaseType = KEY_RELEASE_EVENT_TYPE;

  KeyEvent::KeyEvent(EventType type, int key, void* source):
    Event(type, source), key(key){
  }

  KeyEvent::KeyEvent(EventType type, const KeySequence& ks, void* source):
    Event(type, source), key(0), keySequence(ks){
  }

  KeyEvent::KeyEvent(EventType type,int key, const KeySequence& ks, void* source):
    Event(type, source), key(key), keySequence(ks) {
  }

  KeyEvent::~KeyEvent() {
  }

}
